#!/bin/sh

war=yj-services

/data/tomcat-7.0.82-yj-services/bin/stop.sh
cd /data/tomcat-7.0.82-yj-services/webapps/ && rm -rf ROOT
mv ~/"$war"*.war /data/tomcat-7.0.82-yj-services/webapps/"$war".war
unzip /data/tomcat-7.0.82-yj-services/webapps/"$war".war -d /data/tomcat-7.0.82-yj-services/webapps/ROOT
cd /data/tomcat-7.0.82-yj-services/webapps/ &&  rm -rf "$war".war
rm -rf ~/"$war"*.war



#启动tomcat
/data/tomcat-7.0.82-yj-services/bin/startup.sh